@import "cssVar-light";
@import "cssVar-dark";
@import "cssVar-size";
html, body, #app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: poppin, Tahoma, Arial, \5FAE\8F6F\96C5\9ED1, sans-serif;
  color: var(--learning-text-color);

  * {
    box-sizing: border-box;
  }
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar:horizontal {
  height: 6px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #0003;
  border-radius: 10px;
  transition: all .2s ease-in-out
}

::-webkit-scrollbar-thumb:hover {
  cursor: pointer;
  background-color: #0000004d
}

[theme='dark'] ::-webkit-scrollbar-thumb {
  background-color: #fff3
}

[theme='dark'] ::-webkit-scrollbar-thumb:hover {
  background-color: #fff6
}

body {
  color: var(--learning-text-color);
  background-color: var(--learning-bg-color-1);
  transition: background-color .2s;
}

@font-face {
  font-family: poppin;
  src: url('/public/poppin.ttf')
}
code {
  margin: 0;
  border-radius: 4px;
  padding: .15rem .5rem;
  font-family: "JetBrains Mono", source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: .8em;
  color: var(--learning-text-color);
  line-height: 1.4;
  background-color: var(--learning-code-bg);
  user-select: all;
}

a, area, button, [role=button], input, label, select, summary, textarea {
  touch-action: manipulation
}

a {
  font-weight: 500;
  text-decoration: underline;
}

h1, h2, h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  font-size: 1rem;
  line-height: 1.5em;
  margin: .5rem 0;
}

@media screen and (min-width: 480px) {
  .h1 {
    font-size: 2.2rem;
    margin-top: 0;
  }
}

.learning-show {
  width: 100%;
  border: 1px solid var(--learning-border-color);
  padding: 20px 0;

  &.py-b {
    padding-bottom: 0;
  }
}

.learning-pre {
  font-size: 14px;
  line-height: 23px;
  //padding: 24px 0 0;
  margin: 0;
  background-color: var(--learning-bg-color-2) !important;
  font-family: Consolas, serif;
  overflow: auto;
  padding-left: 1rem;
}

.hljs.learning-pre {
  color: var(--learning-text-color);
}

.code-source-wrapper {
  will-change: height;
  overflow: hidden;
  //border-bottom: 1px;
  border-top: 1px solid var(--learning-border-color);
  margin-bottom: 20px;
  position: relative;
  &:last-child {
    margin-bottom: 0;
  }

  [class*=language-]:before {
    content: "js";
    position: absolute;
    top: .4em;
    right: .8em;
    z-index: 1;
    opacity: .6;
    font-size: .8em;
    color: var(--learning-text-color);
  }

  [class~=language-vue]:before {
    content: "vue";
  }

  [class~=language-js]:before {
    content: "js";
  }

  [class~=language-css]:before {
    content: "css";
  }

  .code-source-foo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;

    &:hover {
      color: var(--learning-color-1);
    }
  }
}

.language-abstract {
  line-height: 1.75;
}

.flex {
  display: flex;

  .v {
    justify-content: center;
  }

  .h {
    align-items: center;
  }

  .col {
    flex-direction: column;
  }
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

button {
  //margin-left: .5em;
}
ul{
  li{
    &.link{
      cursor: pointer;
      transition: color .3s;
      &:hover{
        color: var(--learning-color-1);
      }
    }
  }
}
//总结
ul.Learning-summary {

}

.square-container {
  width: 100%;
  padding-bottom: 50%;
}

.transitionBg {
  transition: background-color .3s;
}

.w100 {
  width: 100%;
}

.bg {
  background-color: var(--learning-color-1);
}

.border {
  border: 1px solid var(--learning-border-color);
}

.padding {
  padding: .25rem 1rem;
}

.selectAll {
  user-select: all;
}

.Learning-area {
  width: 10rem;
  min-height: 5rem;
}

.difference {
  p {
    color: #fff;
    mix-blend-mode: difference;
  }
}

textarea {
  width: 100%;
  font-family: poppin, Tahoma, Arial, \5FAE\8F6F\96C5\9ED1, sans-serif;
}